package Models;

import DB.RowAbstract;
import java.sql.ResultSet;
import java.sql.SQLException;

// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.FE75E311-2041-A1C8-5B1C-0F628F02BAB4]
// </editor-fold> 
public class Checkpoint extends RowAbstract
{
	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,id=DCE.92710017-1500-1BD4-A2A0-5F917A8386EE]
	// </editor-fold>
	private double latitude;

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,id=DCE.84294740-FA97-5ED1-596A-0CEC21BA70EE]
	// </editor-fold>
	private double longtitude;

	public Checkpoint()
	{}

	public Checkpoint(double latitude, double longtitude)
	{
		this.latitude = latitude;
		this.longtitude = longtitude;
	}

	public void importData(ResultSet data) throws SQLException
	{
		this.setLatitude(data.getDouble("latitude"));
		this.setLongtitude(data.getDouble("longtitude"));
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.F917038C-40AC-A5C2-2F2B-8306DC1B37EB]
	// </editor-fold>
	public double getLatitude () {
		return latitude;
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.A2729D3B-4B33-49C3-D1D6-64D3F0F914B2]
	// </editor-fold>
	public void setLatitude (double val) {
		latitude = val;
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.6EC678BE-9484-C789-0AE1-B96CC40CA494]
	// </editor-fold>
	public double getLongtitude () {
		return longtitude;
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.67C49463-F073-71DA-E1D7-6854DAA48403]
	// </editor-fold>
	public void setLongtitude (double val) {
		longtitude = val;
	}
}

